package com.scau.clothes;

import com.scau.clothes.netty.ChatServer;
import org.springframework.amqp.rabbit.annotation.EnableRabbit;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

@SpringBootApplication
@EnableRabbit
public class ClothesApplication {

    public static void main(String[] args) throws InterruptedException {

        SpringApplication.run(ClothesApplication.class, args);
        ChatServer.startServer();
    }

}
